package
{
	import flash.display.LoaderInfo;
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	
	public class LoadXMLTest extends MovieClip
	{
		private var load:URLLoader;
		public function LoadXMLTest()
		{
			load = new URLLoader();
			load.addEventListener(Event.COMPLETE, onCom);
			load.load(new URLRequest("kind.xml"));
		}
		
		private function onCom(e:Event):void
		{
			var uloader:URLLoader = e.currentTarget as URLLoader;
//			trace(uloader.data);
			var xml:XML = XML(uloader.data);
//			trace(xml.toXMLString());
			trace(xml.kind);
			for each(var str:String in xml.kind[0]["question"])
			{
				trace(str);
			}
		}
	}
}